package org.kl.bpm.entity.conf;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.kl.bf.entity.IdEntity;

/**
 * 流程节点用户
 * 
 * @Author hqm
 * @CreateTime 2014年5月25日 下午6:18:35
 */
@Entity
@Table(name = "BPM_CONF_USER")
public class BpmConfUser extends IdEntity {
	private static final long serialVersionUID = 0L;

	private BpmConfNode bpmConfNode;
	private String value;
	private Integer type;
	private Integer status;
	private Integer priority;
	private String remark;

	public BpmConfUser() {
	}

	public BpmConfUser(BpmConfNode bpmConfNode) {
		this.bpmConfNode = bpmConfNode;
	}

	public BpmConfUser(BpmConfNode bpmConfNode, String value, Integer type, Integer status, Integer priority) {
		this.bpmConfNode = bpmConfNode;
		this.value = value;
		this.type = type;
		this.status = status;
		this.priority = priority;
	}

	/** @return null. */
	@ManyToOne
	@JoinColumn(name = "NODE_ID")
	public BpmConfNode getBpmConfNode() {
		return this.bpmConfNode;
	}

	/**
	 * @param bpmConfNode
	 *            null.
	 */
	public void setBpmConfNode(BpmConfNode bpmConfNode) {
		this.bpmConfNode = bpmConfNode;
	}

	/** @return null. */
	@Column(name = "VALUE", length = 200)
	public String getValue() {
		return this.value;
	}

	/**
	 * @param value
	 *            null.
	 */
	public void setValue(String value) {
		this.value = value;
	}

	/** @return null. */
	@Column(name = "TYPE")
	public Integer getType() {
		return this.type;
	}

	/**
	 * @param type
	 *            null.
	 */
	public void setType(Integer type) {
		this.type = type;
	}

	/** @return null. */
	@Column(name = "STATUS")
	public Integer getStatus() {
		return this.status;
	}

	/**
	 * @param status
	 *            null.
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}

	/** @return null. */
	@Column(name = "PRIORITY")
	public Integer getPriority() {
		return this.priority;
	}

	/**
	 * @param priority
	 *            null.
	 */
	public void setPriority(Integer priority) {
		this.priority = priority;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
